package net.diaowen.common.utils;

import net.diaowen.dwsurvey.service.SurveyAnswerManager;
import net.diaowen.dwsurvey.service.SurveyGroupManager;

/**
 * Created by limeng on 7/2/2019.
 */


public class SendNotifyThread extends Thread  {


    SurveyGroupManager surveyGroupManager;

    String savePath;

    String surveyId;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getServeyName() {
        return serveyName;
    }

    public void setServeyName(String serveyName) {
        this.serveyName = serveyName;
    }

    String userName;

    String serveyName;
    String touser;

    public String getTouser() {
        return touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }

    public SurveyGroupManager getSurveyGroupManager() {
        return surveyGroupManager;
    }

    public void setSurveyGroupManager(SurveyGroupManager surveyGroupManager) {
        this.surveyGroupManager = surveyGroupManager;
    }

    public String getSurveyId() {
        return surveyId;
    }

    public void setSurveyId(String surveyId) {
        this.surveyId = surveyId;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public void run() {

            System.out.println("NotifyThread is runing...........");

            try {


                surveyGroupManager.sendWixinNotify(touser,userName,serveyName);
                // surveyGroupManager.sendWixinNotify("o5cWX02ckdFzIYO9HXIntC7Dvz6M",userName,serveyName);

            } catch (Exception e) {

                e.printStackTrace();

            }

            System.out.println("NotifyThread is end....");


        }


}
